package com.aaa.controller;

import com.aaa.entity.RegisteredItem;
import com.aaa.service.RegisteredItemService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("system/registeredItem")
public class RegisteredItemController {
    @Autowired
    private RegisteredItemService registeredItemService;

    @GetMapping("getAll")
    public List<RegisteredItem> getAllRegisteredItems() {
        return registeredItemService.getAllRegisteredItems();
    }
}
